package util;

/**
 * Created by 刘智强 on 2017/4/7.
 */

public class OnClickUtil {

    /**
     * 防止快速点击 1秒
     */

    private static long lastClick = 0;

    public static boolean fastClick() {
        if (System.currentTimeMillis() - lastClick <= 1000) {

            return false;
        }
        lastClick = System.currentTimeMillis();
        return true;
    }
}
